package main;

import java.util.ArrayList;
import java.util.List;

import enums.Auditorium;
import enums.DayOfWeek;
import enums.Speciality;
import enums.Subject;



public class Curriculum{

	private List<String> curriculumMusicMON; 
	private List<String> curriculumProgrammingMON;	
	private List<String> curriculumMusicTUE; 
	private List<String> curriculumProgrammingTUE;
	
	public Curriculum(){
		curriculumMusicMON = new ArrayList<String>();
		curriculumProgrammingMON  = new ArrayList<String>();
		curriculumMusicTUE =  new ArrayList<String>(); 
		curriculumProgrammingTUE = new ArrayList<String>();
		
		this.curriculumMusicMON.add(Subject.SOLFEDGIO.getSubject()+", "+ Auditorium.AUDITORIUM_01.getAuditorium());	
		this.curriculumMusicMON.add(Subject.CHOIR.getSubject()+", "+ Auditorium.AUDITORIUM_02.getAuditorium());
		
		this.curriculumProgrammingMON.add(Subject.JAVA_LANGUAGE.getSubject()+", "+ Auditorium.AUDITORIUM_03.getAuditorium());
		this.curriculumProgrammingMON.add(Subject.C_LANGUAGE.getSubject()+", "+ Auditorium.AUDITORIUM_03.getAuditorium());
		
		this.curriculumMusicTUE.add(Subject.CHOIR.getSubject()+", "+ Auditorium.AUDITORIUM_02.getAuditorium());
		this.curriculumMusicTUE.add(Subject.CHOIR.getSubject()+", "+ Auditorium.AUDITORIUM_02.getAuditorium());
		
		this.curriculumProgrammingTUE.add(Subject.JAVA_LANGUAGE.getSubject()+", "+ Auditorium.AUDITORIUM_01.getAuditorium());
		this.curriculumProgrammingTUE.add(Subject.JAVA_LANGUAGE.getSubject()+", "+ Auditorium.AUDITORIUM_03.getAuditorium());	
		}	
    public List<String> getCurriculum(Group group, DayOfWeek dayOfWeek) {    	
    	if(group.getSpeciality().equals(Speciality.MUSIC)){
    		if(dayOfWeek.equals(dayOfWeek.MON)){
    			return curriculumMusicMON;
    		}else{
    			return curriculumMusicTUE;
    		}       		
    	}else if(dayOfWeek.equals(dayOfWeek.MON)){
    			return curriculumProgrammingMON;
    		}else{
    		return curriculumProgrammingTUE;
    		} 	  	
    	}	
}